<div class="view">
<h2><?php  __('Procédure "'.$procedure['Procedure']['proc_reference'].'"');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Index'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $procedure['Procedure']['proc_index']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Référence'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $procedure['Procedure']['proc_reference']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Titre'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $procedure['Procedure']['proc_title']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Scope'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $procedure['Procedure']['proc_scope']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Durée'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $procedure['Procedure']['proc_duration']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Prérequis'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $procedure['Procedure']['proc_prerequisites']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Regression'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $procedure['Procedure']['proc_regression']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('TypeGood'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($procedure['ProcedureType']['ptype_name'], array('controller'=> 'procedure_types', 'action'=>'view', $procedure['ProcedureType']['ptype_index'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Phase'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($procedure['Phase']['phase_name'], array('controller'=> 'phases', 'action'=>'view', $procedure['Phase']['phase_index'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Part'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($procedure['Part']['part_name'], array('controller'=> 'parts', 'action'=>'view', $procedure['Part']['part_name'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Version'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($procedure['Version']['v_name'], array('controller'=> 'versions', 'action'=>'view', $procedure['Version']['v_name'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Categorie'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($procedure['Category']['cat_name'], array('controller'=> 'categories', 'action'=>'view', $procedure['Category']['cat_index'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Créée par'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $procedure['Procedure']['proc_created_by']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Date de création'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $procedure['Procedure']['proc_created_date']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modifiée par'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $procedure['Procedure']['proc_updated_by']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Date de modification'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $procedure['Procedure']['proc_updated_date']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Suppr par'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($procedure['User']['u_username'], array('controller'=> 'users', 'action'=>'view', $procedure['User']['u_username'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Proc Deleted Date'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $procedure['Procedure']['proc_deleted_date']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Projet'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($procedure['Project']['proj_name'], array('controller'=> 'projects', 'action'=>'view', $procedure['Project']['proj_index'])); ?>
			&nbsp;
		</dd>
			<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Entreprise'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($procedure['Project']['proj_company'], array('controller'=> 'projects', 'action'=>'view', $procedure['Project']['proj_index'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Edit Procedure', true), array('action'=>'edit', $procedure['Procedure']['proc_index'])); ?> </li>
		<li><?php echo $html->link(__('Supprimer Procedure', true), array('action'=>'delete', $procedure['Procedure']['proc_index']), null, sprintf(__('Are you sure you want to delete # %s?', true), $procedure['Procedure']['proc_index'])); ?> </li>
		<li><?php echo $html->link(__('Lister Procedures', true), array('action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau Procedure', true), array('action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister Procedure Types', true), array('controller'=> 'procedure_types', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouvelle Procédure Type', true), array('controller'=> 'procedure_types', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister Phases', true), array('controller'=> 'phases', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau Phase', true), array('controller'=> 'phases', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister Parts', true), array('controller'=> 'parts', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau Part', true), array('controller'=> 'parts', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister Versions', true), array('controller'=> 'versions', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau Version', true), array('controller'=> 'versions', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister Categories', true), array('controller'=> 'categories', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau Category', true), array('controller'=> 'categories', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister Projects', true), array('controller'=> 'projects', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau Project', true), array('controller'=> 'projects', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister Users', true), array('controller'=> 'users', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau User', true), array('controller'=> 'users', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister Steps', true), array('controller'=> 'steps', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau Step', true), array('controller'=> 'steps', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('Lister liens Procédure-Requirements', true), array('controller'=> 'procedure_requirements', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('Nouveau lien Procédure-Requirement', true), array('controller'=> 'procedure_requirements', 'action'=>'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Step(s) relatif(s)');?></h3>
	<?php if (!empty($procedure['Step'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Step Index'); ?></th>
		<th><?php __('Step Number'); ?></th>
		<th><?php __('Step Action'); ?></th>
		<th><?php __('Step Result'); ?></th>
		<th><?php __('Step Proc'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($procedure['Step'] as $step):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $step['step_index'];?></td>
			<td><?php echo $step['step_number'];?></td>
			<td><?php echo $step['step_action'];?></td>
			<td><?php echo $step['step_result'];?></td>
			<td><?php echo $step['step_proc'];?></td>
			<td class="actions">
				<?php echo $html->link('<img src="/ReqTrack/img/Voir.png" alt="Voir" title="Voir">', array('controller'=> 'steps', 'action'=>'view', $step['step_index']), null, null, false); ?>
				<?php echo $html->link('<img src="/ReqTrack/img/Modifier.png" alt="Modifier" title="Modifier">', array('controller'=> 'steps', 'action'=>'edit', $step['step_index']), null, null, false); ?>
				<?php echo $html->link('<img src="/ReqTrack/img/Supprimer.png" alt="Supprimer" title="Supprimer">', array('controller'=> 'steps', 'action'=>'delete', $step['step_index']), null, sprintf(__('Are you sure you want to delete # %s?', true), $step['step_index']), null, null, false); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('Nouveau Step', true), array('controller'=> 'steps', 'action'=>'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Requirement(s) associé(s)');?></h3>
	<?php if (!empty($procedure['ProcedureRequirement'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Pra Proc'); ?></th>
		<th><?php __('Pra Requirement'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($procedure['ProcedureRequirement'] as $procedureRequirement):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $procedureRequirement['pra_proc'];?></td>
			<td><?php echo $procedureRequirement['pra_requirement'];?></td>
			<td class="actions">
				<?php echo $html->link('<img src="/ReqTrack/img/Voir.png" alt="Voir" title="Voir">', array('controller'=> 'procedure_requirements', 'action'=>'view', $procedureRequirement['pra_proc, pra_requirement']), null, null, false); ?>
				<?php echo $html->link('<img src="/ReqTrack/img/Modifier.png" alt="Modifier" title="Modifier">', array('controller'=> 'procedure_requirements', 'action'=>'edit', $procedureRequirement['pra_proc, pra_requirement']), null, null, false); ?>
				<?php echo $html->link('<img src="/ReqTrack/img/Supprimer.png" alt="Supprimer" title="Supprimer">', array('controller'=> 'procedure_requirements', 'action'=>'delete', $procedureRequirement['pra_proc, pra_requirement']), null, sprintf(__('Are you sure you want to delete # %s?', true), $procedureRequirement['pra_proc, pra_requirement']), null, null, false); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('Nouveau lien Procédure-Requirement', true), array('controller'=> 'procedure_requirements', 'action'=>'add'));?> </li>
		</ul>
	</div>
</div>
